package customer.zspt.cn.customer.Widget;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import customer.zspt.cn.customer.R;

/**
 * Created by Administrator on 2018/7/14 0014.
 */

public class OrderMsgItem extends LinearLayout {
    private final TextView orderTitle;
    public int type;
    public int type_index;
    public OrderMsgItem(Context context) {
        this(context,null);
    }

    public OrderMsgItem(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs,0);
    }

    public OrderMsgItem(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        View.inflate(context, R.layout.order_msg_item,this);
        orderTitle = findViewById(R.id.orderTitle);
    }

    public void setOrderTitle(String title)
    {
        orderTitle.setText(title);
    }

    public void setDataIndex(int type,int type_index)
    {
        this.type = type;
        this.type_index = type_index;
    }


}
